<template>
  <div>
    <el-image :src="src">
      <template #error>
        <img src="./avatar.jpg" alt="">
      </template>
    </el-image>
  </div>
</template>
<script>
export default {
  props: {
    src: {
      required: true,
      type: String
    }
  }
}
</script>
